﻿<sap:ActivityDesigner x:Class="Vision.Core.ActivityComponents.Messaging.SendEmailMessageDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cor="clr-namespace:System;assembly=mscorlib"  
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation" >    
    <sap:ActivityDesigner.Resources>
        <sapc:ArgumentToExpressionConverter x:Uid="sapv:ArgumentToExpressionConverter_1" x:Key="argumentToExpressionConverter" />        
    </sap:ActivityDesigner.Resources>
    <Grid>
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Mail From:" Width="100" VerticalAlignment="Center"/>
                <sapv:ExpressionTextBox Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.MailFrom, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Mail To:" Width="100" VerticalAlignment="Center"/>
                <sapv:ExpressionTextBox Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.MailTo, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Mail Subject:" Width="100" VerticalAlignment="Center"/>
                <sapv:ExpressionTextBox Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.MailSubject, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Mail Body:" Width="100" VerticalAlignment="Center"/>
                <sapv:ExpressionTextBox Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.MailBody, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Mail Host:" Width="100" VerticalAlignment="Center"/>
                <sapv:ExpressionTextBox Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.MailHost, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</sap:ActivityDesigner>
